<include file="Public:header" />
<form action="" method="post" id="myform">
    <div class="pad-10">
        <div id="div_setting_1" class="contentList pad-10">
            <table width="100%" class="table_form">
                <tr>
                    <th width="120">用户名：</th>
                    <td>{$info.username}</td>
                </tr>
                <tr>
                    <th>昵称：</th>
                    <td>
                        <input name="data[nickname]" class="input-text" type="text" id="" value="{$info.nickname}">
                    </td>
                </tr>
                <notempty name="info['avatar']">
                    <tr>
                        <th>头像：</th>
                        <td>
                            <img src="{$info.avatar}">
                        </td>
                    </tr>
                    <input name="data[avatar]" type="hidden" value="{$info.avatar}">
                </notempty>
                <tr>
                    <th>邮箱：</th>
                    <td>
                        <input type="text" class="input-text" name="data[email]" value="{$info.email}" size="30" />
                    </td>
                </tr>
                <tr>
                    <th>电话：</th>
                    <td>
                        <input type="text" class="input-text" name="data[phone]" value="{$info.phone}" size="30" />
                    </td>
                </tr>
                <tr>
                    <th>地址：</th>
                    <td>
                        <input type="text" class="input-text" name="data[address]" value="{$info.address}" size="30" style="width:220px;" />
                    </td>
                </tr>
                <tr>
                    <th>备注：</th>
                    <td>
                        <textarea name="data[remark]">{$info.remark|trim}</textarea>
                    </td>
                </tr>
                <tr>
                    <th>&nbsp;</th>
                    <td>
                        <input id="save-button" name="dosubmit" type="submit" value="确定修改" class="button">
                    </td>
                </tr>
            </table>
        </div>
</form>
</div>
</body>

</html>
<script type="text/javascript" src="/Public/Js/artDialog/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="/Public/Js/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript">
    $(function() {
        $('#myform').ajaxForm({
            beforeSubmit: checkForm,
            success: complete,
            dataType: 'json'
        });

        function checkForm() {
            return true;
        }
        var origin = $.artDialog.open.origin;

        function complete(data) {

          $("#save-button").attr('value',data.info);
          setTimeout(function() { $("#save-button").attr('value','确定修改'); }, 1000);
          return false;
        }
    })
</script>